package dfl.bysj.controller;


import dfl.bysj.entity.ReserveState;
import dfl.bysj.handler.NoAuth;
import dfl.bysj.result.R;
import dfl.bysj.service.ReserveStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author DFL
 * @since 2022-04-26
 */
@RestController
@RequestMapping("/reserveState")
public class ReserveStateController {

    private ReserveStateService reserveStateService;

    @Autowired
    public void setReserveStateService(ReserveStateService reserveStateService) {
        this.reserveStateService = reserveStateService;
    }
    @NoAuth
    @GetMapping("/list")
    public R list(){
        return R.ok().data("reserveStates",reserveStateService.getAllReserveStates());
    }
}

